package com.woniuxy.platform.core.mapper;

import com.woniuxy.platform.core.model.PmMessage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gmx
 * @since 2021-06-30
 */
public interface PmMessageMapper extends BaseMapper<PmMessage> {
    @Select("select * from pm_message where type = 0")
    List<PmMessage> selectAnnouncement();


    @Select("select * from pm_message where type = 1")
    List<PmMessage> selectMesNotice();

    @Select("select * from pm_message where type = 2")
    List<PmMessage> selectActivityNotice();

    @Select("select * from pm_message")
    List<PmMessage> selectMessage();

    List<PmMessage> seletMH(PmMessage message);
    List<PmMessage> selectWarning(Integer storeId);

    List<PmMessage> selectAll();
}
